package org.hengguan.base.contest.model.contest;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.Accessors;


@Builder
@Getter
@TableName("tb_contest_player_record")
@ApiModel(value="PlayerRecordModel对象", description="比赛选手档案表")
public class PlayerRecordModel extends Model<PlayerRecordModel> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    @TableField("pl_name")
    private String plName;

    @ApiModelProperty(value = "电话")
    @TableField("pl_telephone")
    private String plTelephone;

    @ApiModelProperty(value = "性别")
    @TableField("pl_sex")
    private String plSex;

    @ApiModelProperty(value = "住址")
    @TableField("pl_address")
    private String plAddress;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
